home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.cs.arizona.edu
/
ftp.cs.arizona.edu.tar
/
ftp.cs.arizona.edu
/
icon
/
newsgrp
/
group98c.txt
/
000079_icon-group-sender _Mon Nov 16 12:46:59 1998.msg
< prev
next >
Wrap
Internet Message Format
|
2000-09-20
|
2KB
Return-Path: <icon-group-sender>
Received: from kingfisher.CS.Arizona.EDU (kingfisher.CS.Arizona.EDU [192.12.69.239])
by baskerville.CS.Arizona.EDU (8.9.1a/8.9.1) with SMTP id MAA22393
for <icon-group-addresses@baskerville.CS.Arizona.EDU>; Mon, 16 Nov 1998 12:46:58 -0700 (MST)
Received: by kingfisher.CS.Arizona.EDU (5.65v4.0/1.1.8.2/08Nov94-0446PM)
id AA08430; Mon, 16 Nov 1998 12:46:58 -0700
Message-Id: <4FD6422BE942D111908D00805F3158DF0757B742@RED-MSG-52>
From: Todd Proebsting <toddpro@microsoft.com>
To: "'nr@labrador.cs.virginia.edu'" <nr@labrador.cs.virginia.edu>,
icon-group@optima.CS.Arizona.EDU
Subject: RE: Coding multi-part patterns, as in SNOBOL
Date: Mon, 16 Nov 1998 10:03:46 -0800
X-Mailer: Internet Mail Service (5.5.2232.9)
Errors-To: icon-group-errors@optima.CS.Arizona.EDU
Status: RO
>From the request, I inferred---perhaps wrongly---that initial blanks were to
be removed *only* if followed by at least one angle bracket. The solution
below always removes initial blanks, regardless of what follows.
Todd Proebsting
-----Original Message-----
From: nr@labrador.cs.virginia.edu [mailto:nr@labrador.cs.virginia.edu]
Sent: Friday, November 13, 1998 2:44 PM
To: icon-group@optima.CS.Arizona.EDU
Subject: Re: Coding multi-part patterns, as in SNOBOL
In article <Pine.LNX.3.95.981113120727.7576B-100000@smarty.smart.net>,
Mark Laster <mlaster@smart.net> wrote:
>One of my programs in ICON processes e-mail messages. It does
>more than the snippet shown here, but for purposes of
>discussion, it removes the "e-mail quotation" marks from lines of
>text. As you know, those marks in aggregate may be either:
>
> (1) one or more angle brackets, starting at the left margin, or
>
> (2) one or more spaces, starting at the left margin, FOLLOWED
> IMMEDIATELY BY one or more angle brackets.
>
>To remove these "e-mail quote" marks, I needed about 20 lines,
>as shown below.
procedure strip_email_quote(s)
return s ? { tab(many(' ')); tab(many('>')); tab(0) }
end